package cn.itcast.tanhua.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName ServerApp
 * @Description 消费者引导类
 * @Author WU
 * @Date 2021/5/27 14:15
 * @Version 1.0
 */
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@MapperScan("cn.itcast.tanhua.common.mapper")
@ComponentScan(basePackages={"cn.itcast.tanhua"}) //设置扫描包范围
public class ServerApp {
    public static void main(String[] args) {
        SpringApplication.run(ServerApp.class,args);
    }
}
